//--------------------------------------------------------------------------
// 
//  Copyright (c) Christian Liensberger.  All rights reserved. 
// 
//  Licensed under GPL v2. See official license for details.
// 
//--------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.IO;

namespace Chili.Imagizer
{
	/// <summary>
	/// Holds a list of image files.
	/// </summary>
	public sealed class ImagesCollection : List<FileInfo>
	{
		private DirectoryInfo _root;

		/// <summary>
		/// Creates a new instance of the ImageCollection.
		/// </summary>
		/// <param name="root">The root directory.</param>
		internal ImagesCollection(DirectoryInfo root)
		{
			if (root == null)
				throw new ArgumentNullException("root");

			_root = root;
		}

		/// <summary>
		/// Gets the root directory.
		/// </summary>
		public DirectoryInfo RootDirectory
		{
			get { return _root; }
		}
	}
}
